package cn.le.bean;

import io.netty.channel.Channel;
import org.msgpack.annotation.Message;

import java.io.Serializable;
@Message
public class CacheUserBean implements Serializable {

    private Long userId;
    private Channel channel;
    private String ip;

    public CacheUserBean() {
    }

    public CacheUserBean(Long userId, Channel channel, String ip) {
        this.userId = userId;
        this.channel = channel;
        this.ip = ip;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Channel getChannel() {
        return channel;
    }

    public void setChannel(Channel channel) {
        this.channel = channel;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
}
